package com.sgb.kjwl.model.entity;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class DeviceDetailEntity {

    private String brandNo;
    @SerializedName(value = "contactNumberAll", alternate = {"contactNumber"})
    private String contactNumberAll;
    private String contacts;
    private String describe;
    private String districtName;
    private String districtNo;
    private String pictures;
    private String price;
    @SerializedName(value = "priceUnit", alternate = {"priceUnitName"})
    private String priceUnit;
    private int negotiable;
    private String title;
    private String typeNo;
    private String updateTime;
    private String no;
    private String fristCategory;
    private String secondCategory;
    private String fristCategoryName;
    private String secondCategoryName;
    private String cityName;
    private String provinceName;
    private List<AttrsBean> attributes;
    private String addressDetail;
    private String taskAddr;
    private String serviceArea;
    private String isDriver;//是否自带驾驶员（0是，1否）
    private String workStartTime;//可工作开始时间
    private String workEndTime;//可工作结束时间
    private String imAccount;//IM参数
    private String customerServiceId;//客服id
    private String needInvoice;
    private String companyName;
    private String companyId;//公司id
    private String companyNo;//公司no
    private String  createUserNo;//创建者no
    private String  status;//上下架
    private String latitude;
    private String longitude;

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getCreateUserNo() {
        return createUserNo;
    }

    public void setCreateUserNo(String createUserNo) {
        this.createUserNo = createUserNo;
    }

    public String getTaskAddr() {
        return taskAddr;
    }

    public void setTaskAddr(String taskAddr) {
        this.taskAddr = taskAddr;
    }

    public String getFristCategoryName() {
        return fristCategoryName;
    }

    public void setFristCategoryName(String fristCategoryName) {
        this.fristCategoryName = fristCategoryName;
    }

    public String getSecondCategoryName() {
        return secondCategoryName;
    }

    public void setSecondCategoryName(String secondCategoryName) {
        this.secondCategoryName = secondCategoryName;
    }

    public String getWorkStartTime() {
        return workStartTime;
    }

    public String getIsDriver() {
        return isDriver;
    }

    public void setIsDriver(String isDriver) {
        this.isDriver = isDriver;
    }

    public void setWorkStartTime(String workStartTime) {
        this.workStartTime = workStartTime;
    }

    public void setWorkEndTime(String workEndTime) {
        this.workEndTime = workEndTime;
    }

    public String getImAccount() {
        return imAccount;
    }

    public void setImAccount(String imAccount) {
        this.imAccount = imAccount;
    }

    public String getCustomerServiceId() {
        return customerServiceId;
    }

    public void setCustomerServiceId(String customerServiceId) {
        this.customerServiceId = customerServiceId;
    }

    public String getTariff() {
        return tariff;
    }

    public void setTariff(String tariff) {
        this.tariff = tariff;
    }

    public String getWorkEndTime() {
        return workEndTime;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    private String tariff;
    private String invoiceType;

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getServiceArea() {
        return serviceArea;
    }

    public void setServiceArea(String serviceArea) {
        this.serviceArea = serviceArea;
    }

    public String getFristCategory() {
        return fristCategory;
    }

    public void setFristCategory(String fristCategory) {
        this.fristCategory = fristCategory;
    }

    public String getSecondCategory() {
        return secondCategory;
    }

    public void setSecondCategory(String secondCategory) {
        this.secondCategory = secondCategory;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public List<AttrsBean> getAttributes() {
        return attributes;
    }

    public void setAttributes(List<AttrsBean> attributes) {
        this.attributes = attributes;
    }

    public String getBrandNo() {
        return brandNo;
    }

    public void setBrandNo(String brandNo) {
        this.brandNo = brandNo;
    }

    public String getContactNumberAll() {
        return contactNumberAll;
    }

    public void setContactNumberAll(String contactNumberAll) {
        this.contactNumberAll = contactNumberAll;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDistrictNo() {
        return districtNo;
    }

    public void setDistrictNo(String districtNo) {
        this.districtNo = districtNo;
    }

    public ArrayList<String> getPictures() {
        String[] split = pictures.split(",");
        ArrayList<String> strings = new ArrayList<>();
        strings.addAll(Arrays.asList(split));
        return strings;
    }

    public void setPictures(String pictures) {
        this.pictures = pictures;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public int getNegotiable() {
        return negotiable;
    }

    public void setNegotiable(int negotiable) {
        this.negotiable = negotiable;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTypeNo() {
        return typeNo;
    }

    public void setTypeNo(String typeNo) {
        this.typeNo = typeNo;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getNeedInvoice() {
        return needInvoice;
    }

    public void setNeedInvoice(String needInvoice) {
        this.needInvoice = needInvoice;
    }

    public static class AttrsBean {
        /**
         * key : 1
         * name : 罐体容积
         * no : 201906215949574
         * unit : m³
         * val : 14
         */

        private String attrKey;
        private String name;
        private String attributeNo;
        private String unit;
        private String val;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getVal() {
            return val;
        }

        public void setVal(String val) {
            this.val = val;
        }

        public String getAttrKey() {
            return attrKey;
        }

        public void setAttrKey(String attrKey) {
            this.attrKey = attrKey;
        }

        public String getAttributeNo() {
            return attributeNo;
        }

        public void setAttributeNo(String attributeNo) {
            this.attributeNo = attributeNo;
        }
    }
}
